import request from '@/utils/request'

export function studentLogin(data: { sno: string; password: string }) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 用户端登出API
export function userLogoutApi() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}